package com.jxk.test.listener;
import javax.servlet.ServletRequestEvent;
import javax.servlet.ServletRequestListener;

/**
 * @ClassName : MyRequestListtener  //类名
 * @Description :   //描述
 * @Author : jxk  //作者
 * @Date: 2020-09-21 14:33  //时间
 */
public class MyRequestListtener  implements  ServletRequestListener {
    private  int number;
    @Override
    public void requestDestroyed(ServletRequestEvent sre) {
        number--;
       System.out.println(number);
    }

    @Override
    public void requestInitialized(ServletRequestEvent sre) {
        number++;
       System.out.println(number);
    }
}
